-- GENERATED SPELL FOR [Corrupted Scorpid] --


function spell0_3226(pUnit, Event) --@Noxious Catalyst,n/a--
pUnit:FullCastSpellOnTarget(5413,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3226', 0, 1)
end

function Sorts_3226(pUnit, Event)
local choix_sorts_3226 = math.random(0, 0)
if choix_sorts_3226 == 0 then
pUnit:RegisterEvent('spell0_3226', 1, 1)
end
end

function mob3226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3226', math.random(1500, 3000), 1)
end

function mob3226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3226, 1, 'mob3226_Action')
RegisterUnitEvent(3226, 2, 'mob3226_Leave')
RegisterUnitEvent(3226, 3, 'mob3226_Kill')
RegisterUnitEvent(3226, 4, 'mob3226_Die')
